﻿/// Write a method GetMax() with two parameters that returns the bigger of two integers. 
/// Write a program that reads 3 integers from the console and prints the biggest of them using the method GetMax().

using System;

namespace c_sh_II_lek_3
{
    class Zad2
    {
        static void Main()
        {
            int n1 = int.Parse(Console.ReadLine());
            int n2 = int.Parse(Console.ReadLine());
            int n3 = int.Parse(Console.ReadLine());

            int max = GetMax(n1, n2);
            max = GetMax(max, n3);
            Console.WriteLine(max);

        }

        static int GetMax(int first, int second)
        {
            return Math.Max(first, second);
        }
    }
}
